import service from '../request'

// 获取点
export function getPoint() {
  return service({
    url: '/Draw/DrawTargetPoint/geojson',
    method: 'get',
  })
}

// 新增点
export function postAddpoint(params) {
  return service({
    url: '/Draw/DrawTargetPoint',
    method: 'post',
    data: params,
  })
}

export function putpoint(params) {
  return service({
    url: `Draw/DrawTargetPoint/${params.KeyValue}`,
    method: 'put',
    data: params,
  })
}
